/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 添加人员角色 POST /api/rbacRole/addEmoloyee */
export async function apiRbacRoleAddEmoloyeeUsingPost({
  body,
  options,
}: {
  body: API.ApiRbacRoleEmployeeBoApiRbacRoleAddEmoloyee;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/rbacRole/addEmoloyee', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查看所有角色 POST /api/rbacRole/listData */
export async function apiRbacRoleListDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RListApiRbacRoleVo>('/api/rbacRole/listData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 查看角色所有权限 POST /api/rbacRole/listMenuId */
export async function apiRbacRoleListMenuIdUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.ApiRbacRoleListMenuIdUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListLong>('/api/rbacRole/listMenuId', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 查看角色所有人员 POST /api/rbacRole/pageEmoloyee */
export async function apiRbacRolePageEmoloyeeUsingPost({
  body,
  options,
}: {
  body: API.ApiRbacRoleBoApiRbacRolePageEmoloyee;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoApiEmployee>('/api/rbacRole/pageEmoloyee', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加角色 POST /api/rbacRole/saveData */
export async function apiRbacRoleSaveDataUsingPost({
  body,
  options,
}: {
  body: API.ApiRbacRoleBoApiRbacRoleSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/rbacRole/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 更新角色所有权限 POST /api/rbacRole/updateMenu */
export async function apiRbacRoleUpdateMenuUsingPost({
  body,
  options,
}: {
  body: API.ApiRbacRoleMenuBoApiRbacRoleUpdateMenu;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/rbacRole/updateMenu', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
